<?php include TMPL_PATH.'public/header.phtml';?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on"><em>红包类型</em></a><span>|</span>
        <a href='<?php echo U('promotion/bonus_edit');?>' ><em>添加红包类型</em></a>
    </div>
</div>
<div class="bk"></div>
<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0" >
        <thead>
            <tr>
            <th align='left' width="200">类型名称</th>
            <th align='left' width="200">发放类型</th>
            <th align='center' width="100">红包金额</th>
            <th align='center' width="100">订单下限</th>
            <th align='center' width="100">发放数量</th>
            <th align='center' width="100">使用数量</th>
						<th>管理操作</th>
            </tr>
        </thead>
    <tbody>
    <?php
   	if(isset($bonusList) && $bonusList):
   		foreach ($bonusList as $v):
   ?>
			<tr>
					<td align='left'><?php echo $v['type_name']?></td>
					<td align='left'><?php echo PromotionModel::$bonusType[$v['send_type']];?></td>
					<td align='center'><?php echo $v['type_money'];?></td>
					<td align="center"><?php echo $v['min_amount'];?></td>
					<td align="center"><?php echo $v['send_count'];?></td>
					<td align="center"><?php echo $v['use_count'];?></td>
					<td align='right' style="padding-right:20px;"> 
					<?php if($v['send_type'] == 3):?>
					<a href="<?php echo U('promotion/bonus_excel', 'bonus_id='.$v['id']);?>">报表</a>&nbsp;&nbsp;|&nbsp;&nbsp;
					<?php endif;?>
					<?php if($v['send_type'] < 1):?>
					<a href="<?php echo U('promotion/bonus_send', 'bonus_id='.$v['id']);?>">发放</a>&nbsp;&nbsp;|&nbsp;&nbsp;
					<?php endif;?>
					<a href="<?php echo U('promotion/bonus_look_list', 'bonus_id='.$v['id']);?>">查看</a>&nbsp;&nbsp;|&nbsp;&nbsp;
					<a href="<?php echo U('promotion/bonus_edit', 'bonus_id='.$v['id']);?>">编辑</a>&nbsp;&nbsp;|&nbsp;&nbsp;
					<a href="javascript:confirmurl('<?php echo U('promotion/bonus_delete', 'bonus_id='.$v['id']);?>','确认要删除 吗？')">删除</a>
					</td>
				</tr>
	<?php 
		endforeach;
		endif;
	?>
   </tbody>
    </table>
<div id="pages"><?php echo $pageShow;?></div>
</div>
</div>
</body>
</html>
